package cn.hfjava.jenkinsspringboot.controller;

import cn.hfjava.jenkinsspringboot.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/list")
    public List<User> getUserList(){
        List<User> userList = new ArrayList<>();
        userList.add(new User(1000,"admin","admin888","系统管理员"));

        return userList;
    }
}
